package com.dliu.javadesign.structure.adapter;

/**
 * @author yanglei
 * date 2021/3/30 15:44
 */
public interface OtherChargeLine {
    void appleCharge(String name);
    void typeCCharge(String name);

    class AppleLine implements OtherChargeLine {
        @Override
        public void appleCharge(String name) {
            System.out.println(name + ": 苹果充电线");
        }

        @Override
        public void typeCCharge(String name) {

        }
    }

    class TypeCLine implements OtherChargeLine {
        @Override
        public void appleCharge(String name) {

        }

        @Override
        public void typeCCharge(String name) {
            System.out.println(name + ": Type-C 充电线");
        }
    }
}
